<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <script src="../js/vue.js"></script>
    </head>
    <body>
        <!-- 
            通过set来检测对象改变
         -->
        <div id="root">
            <h2>学校名称：{{name}}</h2>
            <h2>学校地址：{{address}}</h2>
        </div>
        <script>
             Vue.config.productionTip = false;
            const vm = new Vue({
                el:"#root",
                data:{
                    name:"渭南师范",
                    address:"陕西渭南",
                    study:{
                        name:"张三",
                        age:{
                            rAge:30,
                            age:18
                        },
                        friend:[
                            {name:"李四",age:20}
                        ]
                    }
                }
            })

        </script>
    </body>
</html>